import req from "@/api/axios";
export default {
  // 能源分页 /om/v1/energyType/queryEnergyTypePage
  queryEnergyTypePage(params) {
    return req.post("/om/v1/energyType/queryEnergyTypePage", params);
  },

  // 添加能源类型 /om/v1/energyType/addEnergyType
  add(params) {
    return req.post("/om/v1/energyType/addEnergyType", params);
  },

  // 修改能源类型 /om/v1/energyType/edit
  edit(params) {
    return req.post("/om/v1/energyType/edit", params);
  },

  // 删除 /om/v1/energyType/delEnergyTypeIn
  del(params) {
    return req.get(`/om//v1/energyType/delEnergyType/${params.energyCoding}`);
  },
};
